package com.ruoyi.finance.mapper;

import java.util.List;
import com.ruoyi.finance.domain.TSalaryWayBillRel;
import org.apache.ibatis.annotations.Param;

/**
 * 工资关联Mapper接口
 * 
 * @author ruoyi
 * @date 2024-05-14
 */
public interface TSalaryWayBillRelMapper 
{
    /**
     * 查询工资关联
     * 
     * @param salaryBillId 工资关联主键
     * @return 工资关联
     */
    public TSalaryWayBillRel selectTSalaryWayBillRelBySalaryBillId(Long salaryBillId);

    /**
     * 查询工资关联列表
     * 
     * @param tSalaryWayBillRel 工资关联
     * @return 工资关联集合
     */
    public List<TSalaryWayBillRel> selectTSalaryWayBillRelList(TSalaryWayBillRel tSalaryWayBillRel);

    /**
     * 新增工资关联
     * 
     * @param tSalaryWayBillRel 工资关联
     * @return 结果
     */
    public int insertTSalaryWayBillRel(TSalaryWayBillRel tSalaryWayBillRel);

    /**
     * 修改工资关联
     * 
     * @param tSalaryWayBillRel 工资关联
     * @return 结果
     */
    public int updateTSalaryWayBillRel(TSalaryWayBillRel tSalaryWayBillRel);

    /**
     * 删除工资关联
     * 
     * @param salaryBillId 工资关联主键
     * @return 结果
     */
    public int deleteTSalaryWayBillRelBySalaryBillId(Long salaryBillId);

    /**
     * 批量删除工资关联
     * 
     * @param salaryBillIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTSalaryWayBillRelBySalaryBillIds(Long[] salaryBillIds);

    /**
     * 新增工资关联
     *
     * @param salaryBillId 账单ID
     * @param wayBillIds 运单ID列表
     * @return 结果
     */
    public int insertTSalaryWayBillRelExt(@Param("salaryBillId") Long salaryBillId, @Param("wayBillIds") List<Long> wayBillIds);
}
